home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
001-025
/
scopedisk1
/
getopt
/
getopt.txt
< prev
next >
Wrap
Text File
|
1995-03-18
|
811b
|
21 lines
Function note:
The function getopt() will allow you to easily handle any number of
options as input to your CLI-based programs. It is NOT part of the ANSI
specifications for C, but I find that it makes including options for my
programs much less painful.
Compilation note:
If you have Manx's Aztec C (as I do), getopt can be compiled as either a 16-
or 32-bit integer function. Use whichever mode your calling routine uses.
Just a note:
If you find this function useful (I hope you do; I hate remembering to type
"opt x" instead of "-x") I would appreciate receiving a picture postcard
from your locale bearing the most interesting tidbit of Amiga information
you are willing to share. Thanks.
Adam Levin
133c Hudson Terrace
Piermont, NY 10968-1013